<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cursor 编辑器完全指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #4f46e5;
        }
        
        /* 悬挂标点 */
        .hanging-punctuation {
            hanging-punctuation: first last;
        }
        
        /* 卡片悬停效果 */
        .card-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        /* 代码块样式 */
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 0.75rem;
            padding: 1.5rem;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
            position: relative;
        }
        
        .code-block::before {
            content: attr(data-lang);
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            font-size: 0.75rem;
            color: #64748b;
            text-transform: uppercase;
        }
        
        /* 表格样式 */
        .custom-table {
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        .custom-table th {
            background: #4f46e5;
            color: white;
            font-weight: 600;
            padding: 1rem;
            text-align: left;
        }
        
        .custom-table td {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .custom-table tr:last-child td {
            border-bottom: none;
        }
        
        .custom-table tr:hover {
            background: #f9fafb;
        }
        
        /* 滚动动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease-out;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 导航指示器 */
        .nav-indicator {
            position: fixed;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            z-index: 50;
        }
        
        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #cbd5e1;
            margin: 1rem 0;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .nav-dot.active {
            background: #4f46e5;
            transform: scale(1.5);
        }
        
        /* 键盘快捷键样式 */
        .kbd {
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            padding: 0.125rem 0.5rem;
            font-size: 0.875rem;
            font-family: monospace;
            box-shadow: 0 2px 0 #d1d5db;
            display: inline-block;
            margin: 0 0.125rem;
        }
    </style>
</head>
<body>
    <!-- Hero 区域 -->
    <section class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
        <div class="absolute inset-0 bg-black opacity-20"></div>
        <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32">
            <div class="text-center">
                <h1 class="text-5xl lg:text-7xl font-bold mb-6 tracking-tight">
                    <i class="fas fa-code mr-4"></i>Cursor 编辑器
                </h1>
                <p class="text-2xl lg:text-3xl mb-8 font-light">掌握 AI 驱动的代码编辑器，开启智能编程新纪元</p>
                <div class="flex justify-center space-x-4 text-lg">
                    <span class="flex items-center"><i class="fas fa-rocket mr-2"></i>高效导航</span>
                    <span class="flex items-center"><i class="fas fa-brain mr-2"></i>AI 加持</span>
                    <span class="flex items-center"><i class="fas fa-palette mr-2"></i>自定义界面</span>
                </div>
            </div>
        </div>
        <div class="absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-gray-50 to-transparent"></div>
    </section>

    <!-- 导航指示器 -->
    <div class="nav-indicator hidden lg:block">
        <div class="nav-dot active" data-section="interface"></div>
        <div class="nav-dot" data-section="navigation"></div>
        <div class="nav-dot" data-section="shortcuts"></div>
        <div class="nav-dot" data-section="view"></div>
    </div>

    <!-- 主要内容区域 -->
    <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        
        <!-- 第一部分：用户界面组成 -->
        <section id="interface" class="mb-20 fade-in">
            <div class="bg-white rounded-2xl shadow-xl p-8 lg:p-12">
                <h2 class="text-4xl font-bold text-gray-900 mb-6 flex items-center">
                    <span class="bg-indigo-600 text-white rounded-full w-12 h-12 flex items-center justify-center mr-4 text-2xl">1</span>
                    用户界面组成
                </h2>
                
                <p class="text-lg text-gray-700 mb-8 drop-cap hanging-punctuation">
                    初次打开 Cursor，您会看到一个精心设计的界面，融合了传统代码编辑器的布局结构与 AI 功能的创新元素。了解这些界面组件将帮助您更高效地使用 Cursor。
                </p>

                <!-- 界面布局可视化 -->
                <div class="bg-gray-50 rounded-xl p-6 mb-8">
                    <h3 class="text-2xl font-semibold text-gray-800 mb-6 flex items-center">
                        <i class="fas fa-layer-group text-indigo-600 mr-3"></i>
                        主界面布局与面板介绍
                    </h3>
                    
                    <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                        <div class="space-y-4">
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-bars mr-2"></i>活动栏（Activity Bar）
                                </h4>
                                <p class="text-gray-600">位于左侧最窄的一列，包含多个图标，用于切换不同的视图：</p>
                                <ul class="mt-2 space-y-1 text-sm text-gray-600">
                                    <li><i class="fas fa-folder text-yellow-500 mr-2"></i>资源管理器（文件浏览）</li>
                                    <li><i class="fas fa-search text-blue-500 mr-2"></i>搜索</li>
                                    <li><i class="fas fa-code-branch text-green-500 mr-2"></i>源代码管理（Git）</li>
                                    <li><i class="fas fa-bug text-red-500 mr-2"></i>运行与调试</li>
                                    <li><i class="fas fa-puzzle-piece text-purple-500 mr-2"></i>扩展市场</li>
                                    <li><i class="fas fa-robot text-indigo-500 mr-2"></i>AI 助手</li>
                                </ul>
                            </div>
                            
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-columns mr-2"></i>侧边栏（Side Bar）
                                </h4>
                                <p class="text-gray-600">位于活动栏右侧，显示当前选中视图的内容，如文件列表、搜索结果等。</p>
                            </div>
                            
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-edit mr-2"></i>编辑器区域（Editor Area）
                                </h4>
                                <p class="text-gray-600">中央主要区域，用于编辑代码文件，可以分为多个编辑组和编辑器标签。</p>
                            </div>
                        </div>
                        
                        <div class="space-y-4">
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-terminal mr-2"></i>面板（Panel）
                                </h4>
                                <p class="text-gray-600">位于底部的区域，包含：</p>
                                <ul class="mt-2 space-y-1 text-sm text-gray-600">
                                    <li><i class="fas fa-exclamation-triangle text-yellow-500 mr-2"></i>问题（Problems）</li>
                                    <li><i class="fas fa-file-alt text-blue-500 mr-2"></i>输出（Output）</li>
                                    <li><i class="fas fa-bug text-red-500 mr-2"></i>调试控制台（Debug Console）</li>
                                    <li><i class="fas fa-terminal text-green-500 mr-2"></i>终端（Terminal）</li>
                                </ul>
                            </div>
                            
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-info-circle mr-2"></i>状态栏（Status Bar）
                                </h4>
                                <p class="text-gray-600">位于窗口底部，显示当前文件的信息、编码格式、行/列位置等状态信息。</p>
                            </div>
                            
                            <div class="bg-white rounded-lg p-4 card-hover">
                                <h4 class="font-semibold text-indigo-600 mb-2">
                                    <i class="fas fa-comments mr-2"></i>AI 交互面板
                                </h4>
                                <p class="text-gray-600">Cursor 独有的面板，通常位于编辑器右侧或通过特定快捷键唤出，用于与内置 AI 进行交互。</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 自定义布局技巧 -->
                <div class="bg-gradient-to-r from-indigo-50 to-purple-50 rounded-xl p-6">
                    <h3 class="text-2xl font-semibold text-gray-800 mb-6 flex items-center">
                        <i class="fas fa-magic text-purple-600 mr-3"></i>
                        自定义布局技巧
                    </h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div class="bg-white rounded-lg p-4">
                            <h4 class="font-semibold text-purple-600 mb-3">面板调整</h4>
                            <ul class="space-y-2 text-gray-600">
                                <li><i class="fas fa-arrows-alt text-purple-400 mr-2"></i>通过拖拽面板边缘可以调整各区域的大小</li>
                                <li><i class="fas fa-hand-rock text-purple-400 mr-2"></i>点击并拖动面板标题可以改变面板位置</li>
                                <li><i class="fas fa-expand text-purple-400 mr-2"></i>双击面板标题可以最大化/还原面板</li>
                            </ul>
                        </div>
                        
                        <div class="